package com.loanapp.server.market.api.customer.hystrix;

import com.github.pagehelper.PageInfo;
import com.loanapp.server.market.api.customer.api.CustomerBorrowInfoApi;
import com.loanapp.server.market.api.customer.api.CustomerFeedbackApi;
import com.loanapp.server.market.api.customer.entity.CustomerBorrowInfo;
import com.loanapp.server.market.api.customer.entity.CustomerFeedback;
import com.loanapp.server.market.api.customer.query.CustomerBorrowInfoQuery;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class CustomerFeedbackApiFallbackFactory implements FallbackFactory<CustomerFeedbackApi> {

    public CustomerFeedbackApi create(final Throwable throwable) {
        return new CustomerFeedbackApi() {
            public Long Insert(CustomerFeedback customerFeedback) throws Exception {
                return null;
            }
        };
    }
}